﻿<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>戴瑞珠宝官网会员注册登录_Darry Ring求婚钻戒价格 戴瑞珠宝官网</title>
        <meta content="Darry Ring钻戒价格,Darry Ring钻戒图片" name="Keywords" />
    <meta content="Darry Ring官网会员注册登录唯一入口，Darry Ring是求婚钻戒品牌，想了解Darry Ring实体店、Darry Ring哪里有卖等相关Darry Ring资讯就先进入戴瑞珠宝官网注册吧！" name="Description" />
    <meta property="qc:admins" content="26403151123072464122121676375" />
    <meta name="save" content="history">
    	    <link rel="stylesheet" type="text/css" href="__HOME__/css/style.css">            	            <script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
            <script type="text/javascript" src="__HOME__/js/common.js"></script>
            <script type="text/javascript" src="__HOME__/js/banner.js"></script>
        </head>

<body>
	        <!-- <div  class="wrap"> -->
	<header class="cart_head">
    <div class="w1000">
        <div class="dr_logo fl">
            <a href="https://www.darryring.com/"><img src="__HOME__/images/logo.png" alt="" /></a>
        </div>
        <div class="dr_member fr">
            <div class="drmember_sec">
                <div class="dr_member-left fl">
                    <a href="/login?lang=cn">登录</a>
                    <a href="/sign?lang=cn" class="drtojoin">加入DR族</a>
                </div>
                <div class="dr_member-left fl">
                    <i>
                        <img src="__HOME__/images/telleft.png">
                        400 01 13520
                    </i>
                </div>
                <div class="dr_member-left fl">
                    <a href="https://www.darryring.com/help" target="_blank" class="help-right">帮助中心<span></span></a>
                </div>
            </div>
        </div>
    </div>
</header>
    <!-- starto of container -->
	
    <div class="dr_banner">
        <!--通行证操作区-->
        <div class="dr_actionMain w1000">
            <div class="dr_passprt dr_passprt-h">
                <ul class="dr_formTabTitle fix">
                                        <li class="dr_formTableft activite">手机注册</li>
                    <li class="dr_formTabright  em">邮箱注册</li>
                                    </ul>
                <div class="dr_form">
                    <div class="dr_formTabMain" id="formTabs">
                        <!--手机end-->
                        <form class="form_first" action="/sign?lang=cn" method="post">
                        <input type="hidden" name="type" value="1">
                        <input type="hidden" name="forward" value="/">
                        <input type="hidden" name="skey" value="SrZLMovD">
                        <input type="hidden" name="retype" value="1">
                        <div class="dr_formTabCon" style="display:block;">
                            <div class="higheVssel higheVssel_phone " style="height:280px">
                                <!--错误提示-->
                                <div class="errorMsg" id="prError"></div>
                                <!--错误提示-->
                                <input type="text" name="mobile" id="mobile" value="" class="ipTxt ico-phone" placeholder="请输入您注册的手机号码" />
                                                                <input type="password" name="mobile_pwd" class="ipTxt ico-pwd" placeholder="请输入长度为6-20位数的密码" />
                                <!--<input type="password" name="mobile_pwd_confirm" class="ipTxt ico-pwd" placeholder="请再次确认密码" />-->
                                <div class="fix"><input type="text" name="mobile_code" value="" class="ipTxt ico-send inputCode" placeholder="输入验证码" />
                                <a class="getCodeBtn mobile_action" id="getPhoneCode" href="javascript:void(0)">获取语音验证码</a>
                                </div>
                                                                <div class="checkTerms">
                                    <input type="checkbox" name="mobile_check" id="phoneCheck" checked="checked" /><label for="phoneCheck">同意Darry Ring用户</label><a href="http://www.darryring.com/help/46">注册协议</a>和<a href="http://www.darryring.com/help/47">隐私条款</a>
                                </div>
                            </div>
                            <div class="dr_Btns">
                                <!-- <a class="colorBtn" id="mobile_reg">立即加入DR族</a> -->
                                <input class="colorBtn" type="button" id="mobile_reg" value="立即加入DR族"/>
                            </div>
                            <div class="loginLink">
                                <!--简体版第三方登录-->
                                <!-- <div class="regOtherLogin">
                                    <a class="qqdl" href="javascript:;"></a>
                                    <a class="wxdl" href="javascript:;"></a>
                                    <a class="wbdl" href="javascript:;"></a>
                                    <a class="zfbdl" href="javascript:;"></a>
                                </div> -->
                                                                <div class="regOtherLogin">
                                    <a class="qqdl" href="/syncLogin/qq"></a>
                                    <a class="wxdl" href="/syncLogin/weixin"></a>
                                    <a class="wbdl" href="/syncLogin/weibo"></a>
                                    <a class="zfbdl" href="/syncLogin/alipay"></a>
                                </div>
                                
                                <!--简体版第三方登录end-->
                                <a href="/login?lang=cn">> 已有帐户 登录</a>
                            </div>
                        </div>
                        </form>
                        <!--手机end-->
                        <!--邮箱注册-->
                        <form class="form_second" action="/sign?lang=cn" method="post">
                        <input type="hidden" name="type" value="2">
                        <input type="hidden" name="forward" value="/">
                        <input type="hidden" name="retype" value="1">

                        <div class="dr_formTabCon">
                            <div class="higheVssel">
                                <!--错误提示-->
                                <div class="errorMsg" id="erError"></div>
                                <!--错误提示-->
                                <input type="text" name="email" value="" class="ipTxt ico-email" placeholder="请输入您的邮箱地址" />
                                <input type="password" name="email_pwd" value="" class="ipTxt ico-pwd" placeholder="请输入长度为6-20位数的密码" />
                                <!--<input type="password" name="email_pwd_confirm" value="" class="ipTxt ico-pwd" placeholder="请再次确认密码" />-->
                                <div class="fix">
                                    <input type="text" name="email_code" value="" class="ipTxt ico-send inputCode" placeholder="请输入验证码" />
                                    <a class="yxCode fr" href="javascript:void(0)" title="点击刷新验证码"><img src="picture/59edbd771b9a4140b225b1ff173ea726.gif" onclick="javascript:this.src = '/code?' + Math.random();" /></a>
                                </div>
                                <div class="checkTerms">
                                    <input type="checkbox" name="email_check" id="emailCheck" checked="checked" /><label for="emailCheck" >同意Darry Ring用户</label><a href="http://www.darryring.com/help/46">注册协议</a>和<a href="http://www.darryring.com/help/47">隐私条款</a>
                                </div>
                            </div> 
                            <div class="dr_Btns">
                                <input class="colorBtn" type="button" id="email_reg" value="立即加入DR族"/>
                                <!-- <a class="colorBtn" id="email_reg">立即加入DR族</a> -->
                            </div>
                            <div class="loginLink">
                                <!--简体版第三方登录-->
                                                                <div class="regOtherLogin">
                                    <a class="qqdl" href="/syncLogin/qq"></a>
                                    <a class="wxdl" href="/syncLogin/weixin"></a>
                                    <a class="wbdl" href="/syncLogin/weibo"></a>
                                    <a class="zfbdl" href="/syncLogin/alipay"></a>
                                </div>
                                                                
                                <!-- <div class="regOtherLogin">
                                    <a class="qqdl" href="javascript:;"></a>
                                    <a class="wxdl" href="javascript:;"></a>
                                    <a class="wbdl" href="javascript:;"></a>
                                    <a class="zfbdl" href="javascript:;"></a>
                                </div> -->
                                <!--简体版第三方登录end-->
                                <a href="/login?lang=cn">> 已有帐户 登录</a>
                            </div>
                        </div>
                        </form>
                        <!--邮箱注册end-->
                        
                    </div>
                </div>
            </div>
        </div>
        <!--通行证操作区 end-->
        <!--banner轮播图-->
                <ul class="dr_bannerul fix" id="drHomeBan">

               <li>
               <a href="https://www.darryring.com/culture_mr" target="_blank">
                    <img src="__HOME__/images/login.jpg" />
                </a>
            </li>
             <li>
                <a href="https://www.darryring.com/darry_ring/?category=1&series=16" target="_blank">
                    <img src="__HOME__/images/login2.jpg" />
                </a>
            </li>
        </ul>
        <!--banner轮播图 end-->
                
        <div class="drbanner_xdcort">
            <ul class="drbanner_xd" id="banBtns">
                                <li><span></span></li>
                <li class="nobg"><span></span></li>
            </ul>
        </div>        <!--banner轮播图 end-->
    </div>







    <!-- end of container -->

        <!--底部end-->
    <!-- <div class="cmain bc_yz">
        <div class="db_cort">
            <p>Copyright &copy;  © 2006-2017 www.darryring.com 戴瑞珠宝 All Rights Reserved. 粤ICP备11012085号-2</p>
            <p>ICP经营许可证粤B2-20140279 | 中国互联网违法信息举报中心 | 中国公安网络110报警服务 | 本网站提供所售商品的正式发票</p>
        </div>
    </div> -->
<!--底部end-->

<div class="dr_footer">
    <div class="dr_footer-top"></div>
    <!--底部图标-->
    <ul class="dr_footer-icon w1000">
                
        <li>
            <a href="https://www.darryring.com/help/28">
                <i class="footer-icon1"></i>
                <span>权威认证</span>
            </a>
        </li>
                <li>
            <a href="https://www.darryring.com/help/42">
                <i class="footer-icon2"></i>
                <span>一钻双证</span>
            </a>
        </li>
        
                        <li>
            <a href="https://www.darryring.com/help/41">

                <i class="footer-icon3"></i>
                <span>终生保养</span>
            </a>
        </li>
                        <li>
            <a href="https://www.darryring.com/help/43">
                <i class="footer-icon4"></i>
                <span>以小换大</span>
            </a>
        </li>
                        <li>
            <a href="https://www.darryring.com/help/45">
                <i class="footer-icon5"></i>
                <span>15天退换</span>
            </a>
        </li>
                <li>
            <a href="https://www.darryring.com/help/36">
                <i class="footer-icon6"></i>
                <span>全国免运费</span>
            </a>
        </li>
        <li>
            <a href="https://www.darryring.com/help/44">
                <i class="footer-icon7"></i>
                <span>全程保险</span>
            </a>
        </li>
            </ul>
    <!--底部图标end-->
    <!--灰色区域-->
    <div class="dr_gray">
        <!--帮助-->
        <div class="dr_help w1000 fix">
            <div class="dr_help-all fl">
                <div class="dr_help-top">
                    <div class="dr_help-left dr_help-gz fl" id="dr_help-gz">
                        关注我们
                        <!--分享按钮-->
                        <div class="comShare">          
                            <a class="shareWeibo" target="_blank" href="http://weibo.com/13520comcn"></a>
                            <a class="shareQzone" target="_blank" href="http://user.qzone.qq.com/2678181289/"></a>
                            <a class="shareQweibo" target="_blank" href="http://e.t.qq.com/DarryRing"></a>
                            <a class="shareRenren" target="_blank" href="http://zhan.renren.com/darryring"></a>
                            <a class="shareDouban" target="_blank" href="http://www.douban.com/people/Darryring/"></a>
                            <img src="__HOME__/images/ew.jpg" />
                        </div>
                        <!--分享按钮end-->
                    </div>


                                                                                <a class="dr_help-left" href="https://www.darryring.com/love/query">真爱查询</a>
                    <a class="dr_help-left" href="https://www.darryring.com/shopyd">实体店免费预约</a>
                    <a class="dr_help-left udeskkefu" href="javascript:;" >在线客服</a>
                </div>
            </div>
            <div class="dr_help-all fl">
                <p>免费服务热线 工作时间:9:00-22:30</p>
                <img src="__HOME__/images/tel.png" />
            </div>
        </div>
        <!--帮助end-->
    </div>
    <!--灰色区域end-->
    <!--黑色区域-->
    <div class="dr_black">
        <div class="w1000">
            <!--服务-->
                        <ul class="dr_servie">
                <li>
                    <h4>关于我们</h4>                
                    <a href="https://www.darryring.com/help/28" target="_blank">权威认证</a>
                    <a href="https://www.darryring.com/help/30" target="_blank">合作专区</a>
                    <a href="https://www.darryring.com/help/32" target="_blank">加入我们</a>
                </li>
                <li>
                    <h4>购物指南</h4>
                    <a href="https://www.darryring.com/help/34" target="_blank">购买流程</a>
                    <a href="https://www.darryring.com/help/27" target="_blank">支付方式</a>
                    <a href="https://www.darryring.com/help/36" target="_blank">配送流程</a>
                </li>
                <li>
                    <h4>售后服务</h4>
                    <a href="https://www.darryring.com/help/37" target="_blank">退货流程</a>
                    <a href="https://www.darryring.com/help/38" target="_blank">办理售后</a>
                    <a href="https://www.darryring.com/help/45" target="_blank">15天退换</a>
                </li>
                <li>
                    <h4>帮助中心</h4>
                    <a href="https://www.darryring.com/help/33" target="_blank">注册流程</a>
                    <a href="javascript:;" class="udeskkefu" target="_blank">联系客服</a>
                    <a href="https://www.darryring.com/help/78" target="_blank">网站地图</a>
                </li>
                <li>
                    <h4>服务条款</h4>
                    <a href="https://www.darryring.com/help/41" target="_blank">终生保养</a>
                    <a href="https://www.darryring.com/help/46" target="_blank">注册协议</a>
                    <a href="https://www.darryring.com/help/47" target="_blank">隐私声明</a>
                </li>
                <li>
                    <h4>DR资讯</h4>
                    <a href="https://www.darryring.com/news/10807.html" target="_blank">钻石百科</a>
                    <a href="https://www.darryring.com/news/10747.html" target="_blank">产品百科</a>
                    <a href="https://www.darryring.com/news/10742.html" target="_blank">求婚指南</a>
                </li>
            </ul>
                        <!--服务end-->
            <!--声明-->
            <div class="dr_statement">
                <p>Copyright  © 2006-2017 www.darryring.com 戴瑞珠宝 All Rights Reserved. 粤ICP备11012085号-2</p>
                <p>ICP经营许可证粤B2-20140279 | 中国互联网违法信息举报中心 | 中国公安网络110报警服务 | 本网站提供所售商品的正式发票</p>
            </div>
            <!--声明end-->
            <!--友情链接-->
                        <!--友情链接end-->
            <!--中英文切换-->
            <div class="dr_langues">
                                <a href="/login?lang=cn">中文简体/</a>
                <a href="/login?lang=hk">中文繁体/</a>
                <a href="/login?lang=en">English</a>
            </div>
            <!--中英文切换end-->
        </div>  
    </div>
    <!--黑色区域end-->  
</div>



<script type="text/javascript">
    // GOOGLE 统计工具代码
    (function (i, s, o, g, r, a, m) {
        i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
            (i[r].q = i[r].q || []).push(arguments)
        }, i[r].l = 1 * new Date(); a = s.createElement(o),
        m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', 'UA-46798784-1', 'darryring.com');
    ga('require', 'displayfeatures');
    ga('send', 'pageview');

    //Google 再营销代码
    /* <![CDATA[ */
    var google_conversion_id = 974707783;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */

    $('.qqdl').click(function() {
        ga('send', 'event', '用户操作', 'click', 'QQ登录', 0);
    });

    $('.wbdl').click(function() {
        ga('send', 'event', '用户操作', 'click', 'weibo登录', 0);
    });

    $('.wxdl').click(function() {
        ga('send', 'event', '用户操作', 'click', 'weixin登录', 0);
    });

    $('.zfbdl').click(function() {
        ga('send', 'event', '用户操作', 'click', 'alipay登录', 0);
    });

</script>

<!--腾讯广点通广告代码-Start-->
<script type="text/javascript" src="js/gdt.js" charset="UTF-8"></script>
<!--腾讯广点通广告代码-END-->

<script type="text/javascript">
    (function(a, h, c, b, f, g) {
        a["UdeskApiObject"] = f;
        a[f] = a[f] || function() {
            (a[f].d = a[f].d || []).push(arguments)
        };
        g = h.createElement(c);
        g.async = 1;
        g.src = b;
        c = h.getElementsByTagName(c)[0];
        c.parentNode.insertBefore(g, c)
    })(window, document, "script", "//assets-cli.udesk.cn/im_client/js/udeskApi.js?1491663295357", "ud");

    ud({
        "code": "1eb5ghj1",
        "link": "//darry.udesk.cn/im_client",
        // "isInvite": true,
        //"targetSelector":'.drsqkfli',
        "selector": '.udeskkefu',
        "mode": "inner",
        "color": "#c67c59",
                "language": "zh-cn",
                "css": {
                "display": "none",
            },
        "onReady": function() { //事件配置
            //ud.showPanel();
        }
    });
</script>

<!-- </div> -->
<!-- <script type="text/javascript" src="js/ma2.js"></script> -->
<script type="text/javascript">
// var _maq = _maq || [];
// _maq.push(['_setAccount', 'pwddr']);
 
/*(function() {
    var ma = document.createElement('script'); ma.type = 'text/javascript'; ma.async = true;
    ma.src =('https:' == document.location.protocol ? 'https://analytics.darryring.com' : 'http://analytics.darryring.com') + '/ma2.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ma, s);
})();*/
//监控email注册数
function ag_Reg_click_Email() {
    if (typeof(_dr) != "undefined") {
        _dr.init({'account': 'DarryRing-PC', 'event': 'regsucc'});
    }
    ga('send', 'event', 'Reg_click_email', 'click', 'submit', 0);
    //zc('Reg_click_email');
};
// $("#email_reg").click(ag_Reg_click_Email);


//监控手机注册数
function ag_Reg_click_Mobile() {
    if (typeof(_dr) != "undefined") {
        _dr.init({'account': 'DarryRing-PC', 'event': 'regsucc'});
    }
    ga('send', 'event', 'Reg_click_mobile', 'click', 'submit', 0);
    /*zc('Reg_click_mobile');*/
};
// $("#mobile_reg").click(ag_Reg_click_Mobile);
</script>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
        $(function(){
            //切换tab
            $(".tits .dr_formTableft").click(function(event) {
                $(this).addClass('activite').siblings().removeClass('activite')
                $(".dr_formTabCon").eq(0).show()
                $(".dr_formTabCon").eq(1).hide()
            });
            
            $(".tits .dr_formTabright").click(function(event) {
                $(this).addClass('activite').siblings().removeClass('activite')
                $(".dr_formTabCon").eq(1).show()
                $(".dr_formTabCon").eq(0).hide()
            });
                        


            //邮箱验证
            $('input[name="email"]').blur(function(){
                removeClass();
                var email = $('input[name="email"]').val();
                if(isNull(email)){
                    hideError();
                    //showError
                    showError('#erError','请输入您的邮箱地址！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email"]').addClass('error');
                    return false;
                }

                if(!isEmail(email)){

                    hideError();
                    //showError
                    showError('#erError','邮箱格式错误 请重新输入！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email"]').addClass('error');
                    return false;
                }
            });

            //邮箱密码验证
            $('input[name="email_pwd"]').blur(function(){
                removeClass();
                var pwd = $('input[name="email_pwd"]').val();
                if(isNull(pwd)){
                    hideError();
                    //showError
                    showError('#erError','请填写密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email_pwd"]').addClass('error');
                    return false;
                }
                
                if(pwd.length < 6){

                    hideError();
                    //showError
                    showError('#erError','请输入长度为6-20位数的密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email_pwd"]').addClass('error');
                    return false;
                }
            });

            $('input[name="email_pwd_confirm"]').blur(function(){
                removeClass();
                var pwd_confirm = $('input[name="email_pwd_confirm"]').val();
                var pwd = $('input[name="email_pwd"]').val();
                if(isNull(pwd_confirm)){
                    hideError();
                    //showError
                    showError('#erError','请输入确认密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email_pwd_confirm"]').addClass('error');
                    return false;
                }
                
                if(pwd != pwd_confirm){
                    hideError();
                    //showError
                    showError('#erError','密码与确认密码不一致 请重新输入！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email_pwd_confirm"]').addClass('error');
                    return false;

                }
            });

            $('input[name="email_code"]').blur(function(){
                removeClass();
                var code = $('input[name="email_code"]').val();
                if(isNull(code)){

                    hideError();
                    //showError
                    showError('#erError','请输入验证码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="email_code"]').addClass('error');
                    return false;
                }
            });

            //手机注册验证
            $('input[name="mobile"]').blur(function(){
                removeClass();
                var mobile = $('input[name="mobile"]').val();
                if(isNull(mobile)){
                    hideError();
                    //showError
                    showError('#prError','请输入手机号码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile"]').addClass('error');
                    return false;
                }


                if(!checkMobile(mobile)){
                    hideError();
                    //showError
                    showError('#prError','手机号码格式错误 请重新输入！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile"]').addClass('error');
                    return false;
                }
            });

            //手机注册验证密码
            $('input[name="mobile_pwd"]').blur(function(){
                removeClass();
                var pwd = $('input[name="mobile_pwd"]').val();
                if(isNull(pwd)){
                    hideError();
                    //showError
                    showError('#prError','请填写密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd"]').addClass('error');
                    return false;
                }
                if(pwd.length < 6){
                    hideError();
                    //showError
                    showError('#prError','请输入长度为6-20位数的密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd"]').addClass('error');
                    return false;

                }
            });

            //手机注册验证验证码
            // $('input[name="mobile_code"]').blur(function(){
            //     removeClass();
            //     var code = $('input[name="mobile_code"]').val();
            //     if(isNull(code)){
            //         hideError();
            //         //showError
            //         showError('#prError','请输入验证码！');
            //         //假设用户输入错误，给该输入框加红色框：error样式
            //         $('input[name="mobile_code"]').addClass('error');
            //         return false;
            //     }
            // });

            $('input[name="mobile_pwd_confirm"]').blur(function(){
                removeClass();
                var pwd = $('input[name="mobile_pwd"]').val();
                var pwd_confirm = $('input[name="mobile_pwd_confirm"]').val();
                if(isNull(pwd_confirm)){
                    hideError();
                    //showError
                    showError('#prError','请输入确认密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd_confirm"]').addClass('error');
                    return false;
                }
                
                if(pwd != pwd_confirm){
                    hideError();
                    //showError
                    showError('#prError','密码与确认密码不一致 请重新输入！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd_confirm"]').addClass('error');
                    return false;

                }  
            });
            
            //验证参数
            $('.colorBtn').click(function(){
                removeClass();

                //判断是邮箱还是手机
                if($('.dr_formTabright').hasClass('activite')){

                    //邮箱验证
                    removeClass();
                    var email = $('input[name="email"]').val();
                    if(isNull(email)){
                        hideError();
                        //showError
                        showError('#erError','请输入您的邮箱地址！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email"]').addClass('error');
                        return false;
                    }

                    if(!isEmail(email)){

                        hideError();
                        //showError
                        showError('#erError','邮箱格式错误 请重新输入！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email"]').addClass('error');
                        return false;
                    }
                     

                    //邮箱密码验证
                    removeClass();
                    var pwd = $('input[name="email_pwd"]').val();
                    if(isNull(pwd)){
                        hideError();
                        //showError
                        showError('#erError','请填写密码！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email_pwd"]').addClass('error');
                        return false;
                    }
                    
                    if(pwd.length < 6){

                        hideError();
                        //showError
                        showError('#erError','请输入长度为6-20位数的密码！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email_pwd"]').addClass('error');
                        return false;
                    }
                  
                    removeClass();
                    var pwd_confirm = $('input[name="email_pwd_confirm"]').val();
                    var pwd = $('input[name="email_pwd"]').val();
                    if(isNull(pwd_confirm)){
                        hideError();
                        //showError
                        showError('#erError','请输入确认密码！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email_pwd_confirm"]').addClass('error');
                        return false;
                    }
                    
                    // if(pwd != pwd_confirm){
                    //     hideError();
                    //     //showError
                    //     showError('#erError','密码与确认密码不一致 请重新输入！');
                    //     //假设用户输入错误，给该输入框加红色框：error样式
                    //     $('input[name="email_pwd_confirm"]').addClass('error');
                    //     return false;

                    // }

                    removeClass();
                    var code = $('input[name="email_code"]').val();
                    if(isNull(code)){

                        hideError();
                        //showError
                        showError('#erError','请输入验证码！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email_code"]').addClass('error');
                        return false;
                    }


                    //邮箱注册                    
                    if(!$('input[name="email_check"]').is(':checked')){
                        hideError();
                        //showError
                        showError('#erError','请同意注册协议及隐私条款！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="email_check"]').addClass('error');
                        return false;
                    }

                    ag_Reg_click_Email();
                    //检测邮箱是否使用过
                    $.ajax({
                        type: "POST",
                        url: "/sign/validEmail",
                        data: "email="+email,
                        success: function(msg){
                          if(msg == 1){
                                hideError();
                                //showError
                                showError('#erError','该邮箱已被注册！');
                                //假设用户输入错误，给该输入框加红色框：error样式
                                $('input[name="email"]').addClass('error');
                                return false;
                          }else{
                              $.ajax({
                                type: "POST",
                                url: "/sign/validEmailCode",
                                data: "code="+code,
                                success: function(msg){
                                    if(msg == 1){

                                        hideError();
                                        //showError
                                        showError('#erError','验证码错误！');
                                        //假设用户输入错误，给该输入框加红色框：error样式
                                        $('input[name="email_code"]').addClass('error');
                                        return false;
                                    }else{
                                        $('.form_second').submit();
                                    }
                                }
                             });
                          }
                        }
                     });
                    
                    
                }

    
                
                if($('.dr_formTableft').hasClass('activite')){
                    //手机注册验证
                        removeClass();
                        var mobile = $('input[name="mobile"]').val();
                        if(isNull(mobile)){
                            hideError();
                            //showError
                            showError('#prError','请输入手机号码！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile"]').addClass('error');
                            return false;
                        }


                        if(!checkMobile(mobile)){
                            hideError();
                            //showError
                            showError('#prError','手机号码格式错误 请重新输入！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile"]').addClass('error');
                            return false;
                        }

                    //手机注册验证密码
                        removeClass();
                        var pwd = $('input[name="mobile_pwd"]').val();
                        if(isNull(pwd)){
                            hideError();
                            //showError
                            showError('#prError','请填写密码！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile_pwd"]').addClass('error');
                            return false;
                        }
                        if(pwd.length < 6){
                            hideError();
                            //showError
                            showError('#prError','请输入长度为6-20位数的密码！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile_pwd"]').addClass('error');
                            return false;

                        }

                    //手机注册验证验证码
                        removeClass();
                       var code = $('input[name="mobile_code"]').val();
                        if(isNull(code)){
                            hideError();
                            //showError
                            showError('#prError','请输入验证码！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile_code"]').addClass('error');
                            return false;
                        }

                        removeClass();
                        var pwd = $('input[name="mobile_pwd"]').val();
                        var pwd_confirm = $('input[name="mobile_pwd_confirm"]').val();
                        if(isNull(pwd_confirm)){
                            hideError();
                            //showError
                            showError('#prError','请输入确认密码！');
                            //假设用户输入错误，给该输入框加红色框：error样式
                            $('input[name="mobile_pwd_confirm"]').addClass('error');
                            return false;
                        }
                        
                       

                      if(!$('input[name="mobile_check"]').is(':checked')){
                        hideError();
                        //showError
                        showError('#prError','请同意注册协议及隐私条款！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="mobile_check"]').addClass('error');
                        return false;
                     }

                    //检测手机号码是否使用过
                    $.ajax({
                        type: "POST",
                        url: "/sign/validMobile",
                        data: "mobile="+mobile,
                        success: function(msg){
                          if(msg == 1){
                                hideError();
                                //showError
                                showError('#prError','该手机号码已被注册！');
                                //假设用户输入错误，给该输入框加红色框：error样式
                                $('input[name="mobile"]').addClass('error');
                                return false;

                          }else{
                              $.ajax({
                                type: "POST",
                                url: "/sign/validMobileCode",
                                data: "mobile="+mobile+"&code="+code,
                                success: function(msg){
                                  if(msg == 1){
                                        hideError();
                                        //showError
                                        showError('#prError','验证码错误！');
                                        //假设用户输入错误，给该输入框加红色框：error样式
                                        $('input[name="mobile_code"]').addClass('error');
                                        return false;
                                  }else{
                                        // 手机统计
                                        ag_Reg_click_Mobile();
                                      $('.form_first').submit();
                                  }
                                }
                             });
                          }
                        }
                     });
                     
                     
                }
            });
            
            //发送短信验证码
            var InterValObj; //timer变量，控制时间
            var curCount;//当前剩余秒数
            $('#getPhoneCode').off('click').on('click',function(){
                getCode($(this));                
            });
            function getCode(obj){
                var count = 120; //间隔函数，1秒执行
                $('.ts_wrong').remove();
                $('.al_Input').removeClass('error');
                var mobile = $('input[name="mobile"]').val();
                var code = $('input[name="mobile_code"]').val();
                var pwd = $('input[name="mobile_pwd"]').val();
                var pwd_confirm = $('input[name="mobile_pwd_confirm"]').val();
                var imgcode = $('input[name="mobile_img_code"]').val();
                var isimgcode = $('input[name="imgcode"]').val();

                if(isNull(mobile)){

                    hideError();
                    //showError
                    showError('#prError','请输入手机号码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile"]').addClass('error');
                    return false;
                }
                    
                if(!checkMobile(mobile)){

                    hideError();
                    //showError
                    showError('#prError','手机号码格式错误 请重新输入！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile"]').addClass('error');
                    return false;
                }


                //手机注册验证密码
                removeClass();
                if(isNull(pwd)){
                    hideError();
                    //showError
                    showError('#prError','请填写密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd"]').addClass('error');
                    return false;
                }
                if(pwd.length < 6){
                    hideError();
                    //showError
                    showError('#prError','请输入长度为6-20位数的密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd"]').addClass('error');
                    return false;

                }

                removeClass();
                if(isNull(pwd_confirm)){
                    hideError();
                    //showError
                    showError('#prError','请输入确认密码！');
                    //假设用户输入错误，给该输入框加红色框：error样式
                    $('input[name="mobile_pwd_confirm"]').addClass('error');
                    return false;
                }
                
                // if(pwd != pwd_confirm){
                //     hideError();
                //     //showError
                //     showError('#prError','密码与确认密码不一致 请重新输入！');
                //     //假设用户输入错误，给该输入框加红色框：error样式
                //     $('input[name="mobile_pwd_confirm"]').addClass('error');
                //     return false;

                // } 
               //检测手机号码是否使用过
                var ecex = function(){
                var is_used = false;
                $.ajax({
                        type: "POST",
                        url: "/sign/validMobile",
                        data: "mobile="+mobile,
                        success: function(msg){
                          if(msg == 1){
                                hideError();
                                //showError
                                showError('#prError','该手机号码已被注册！');
                                //假设用户输入错误，给该输入框加红色框：error样式
                                $('input[name="mobile"]').addClass('error');
                                return false;
                          }else{
                              //设置button效果，开始计时
                              curCount = count;
                              //设置button效果，开始计时
                              $("#getPhoneCode").addClass('sending').html(curCount + "秒后重新获取");
                              InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器，1秒执行一次

                              var skey = $('input[name="skey"]').val();
                              //向后台发送处理数据
                              $.ajax({
                                  type: "POST", //用POST方式传输
                                  url: '/sign/sendSms', //目标地址
                                  data: "mobile=" + mobile +"&skey=" + skey,
                                  success: function (msg){
                                    //提示发送语音成功
                                    if($('#prError')){
                                        showError('#prError','获取成功 请留意接听125909888767的来电','warn');
                                    }
                                  }
                                });
                          }
                        }
                });
               }
              
               
               if(isimgcode){
                    if(isNull(imgcode)){
                        hideError();
                        //showError
                        showError('#prError',' 请输入图片验证码！');
                        //假设用户输入错误，给该输入框加红色框：error样式
                        $('input[name="mobile_img_code"]').addClass('error');
                        return false;
                    }else{
                          $.ajax({
                          type: "POST", //用POST方式传输
                          url: '/sign/validEmailCode', //目标地址
                          data: "code=" + imgcode,
                          success: function (msg){
                            //提示发送语音成功
                           // alert(msg);
                            if( msg == 1 ){
                                hideError();
                                showError('#prError',' 请输入正确图片验证码！');
                                //假设用户输入错误，给该输入框加红色框：error样式
                                $('input[name="mobile_img_code"]').addClass('error');
                               
                                
                            }else{
                                ecex();
                            }
                          }
                        });
                        return false;
                    }
                }
                
              ecex();
              $('#getPhoneCode').off('click');
            }

            function SetRemainTime() {
                if (curCount <= 1) {    
                 window.clearInterval(InterValObj);//停止计时器
                 $("#getPhoneCode").removeClass('sending').html("获取语音验证码");
                 code = ""; //清除验证码。如果不清除，过时间后，输入收到的验证码依然有效 
                 bindgetCode();
                }
                else {
                 curCount--;
                 $("#getPhoneCode").html(curCount + "秒后重新获取");
                }
            }
            function bindgetCode(){
                $('#getPhoneCode').off('click').on('click',function(){
                    getCode('#getPhoneCode');                
                });
            }

    });
    
    $(document).keyup(function(event){
        if(event.keyCode ==13){
           if($('.dr_formTableft').hasClass('activite')){
               $('#mobile_reg').click(function() {
                    ag_Reg_click_Mobile();
               });
           }
           if($('.dr_formTabright').hasClass('activite')){
               $('#email_reg').click(function() {
                    ag_Reg_click_Email()
               });
           }
        }
        // else {
            
        //     $('#email_reg').click(ag_Reg_click_Email);
        // }
    });

    function removeClass() {
        $('.ts_wrong').remove();
        $('.al_Input').removeClass('error');
    }
    

    function hideError(){
        $('.errorMsg').text('').fadeOut();
        $('.ipTxt').removeClass('error');
        if($('.errorMsg').hasClass('warnMsg')){
            $('.errorMsg').removeClass('warnMsg');
        }
    }
    
</script>

    </body>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?1dcab19ac291977068e177c3e5c35fe4";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
	//新版
	(function() {
		var _drma = document.createElement('script'); _drma.type = 'text/javascript'; _drma.async = true;
		_drma.src = ('https:' == document.location.protocol ? 'https://data' : 'http://data') + '.darryring.com/aws.0.1.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_drma, s);
		  
		//pv访问
		_drma.onload = function() {
			_dr.init({'account': 'DarryRing-PC', 'event': 'pageview'});
		}
	})();
</script>
</html>